• There are a couple of items in which I had troubles with when programming "Creator Changer". It would be very helpfull for me if someone could give me some tips. The areas which I could use help on are listed below:
1) Drag and Drop, I want to make it so that when any kind of file is droped on Creator Changer, Creator Changer opens it up, displaying the Change Dialog.
2) The way that I converted the creator/file type from the unsigned long to a pascal string and then back, does not seem like the most efficient, or efficient, way to do so. Is there a specific toolbox function, or the equivalent, that does this? Is there a type casting method that I could use? What about bit operations? I tried these other methods, but I failed miserably.
3) I also tried my program out on a SE30 running System 6. When I opened up a file with Creator Changer, the types did not show up. Why is this? I could not figure it out (didn't really have time to either, since I was at work). I think that I may have worked this problem out, but I am not sure, since now (I'm at school) I do not have access to any Macintosh with system 6.
4) I noticed that when I would change the types, the icon would not update untill the file was moved, or the window closed. However, when I use ResEdit to change the type, the icon updates when the file is saved. Does ResEdit send an "update event" to the Finder? How can I do the same?
5) Pop-up menus in a dialog box, I want to be able to make a list of file and creator types (stored in a custom resource in a preferences file), associated by a name in the pop-up menu, that the user can edit (via the options menu). The new file and creator types would be "pasted" into the edit text boxes. I can handle associating everything, but the pop-up menu in the dialog box and with making the menu change with new entries has got me.
6) I would also like to know of a good reference book for programming the Macintosh in C. I have not found anything that really has in it what I want to know. The only books that I have seen that contain what I want to know is the Inside Macintosh series (to expensive for college students).
• I took a "C" course a couple of years ago, that is where I learned ANSI C. I learned most of my Macintosh programming skills by looking at examples that came with THINK C and other freeware/shareware programs (also just by "reading" the header files). So if anyone can help me, it would benefit me the most by sending samples of the code with minimal comments.